package com.longmao.educms.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author longmao
 * @date 2022/2/11 15:00
 * Content:
 */
@Configuration
@EnableTransactionManagement
@MapperScan("com.longmao.educms.mapper")
public class MyBatisPlusPageConfig {

    /**
     * 分页插件
     */
    @Bean
    public PaginationInterceptor paginationInterceptor() {
        return new PaginationInterceptor();
    }
}
